package cn.stylefeng.guns.modular.business.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 推广素材
 * </p>
 *
 * @author pzp
 * @since 2019-07-30
 */
@Data
@TableName("c_material")
public class Material implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "material_id", type = IdType.AUTO)
    private Integer materialId;

    /**
     * 素材类型：0：问安，1：图文，2：素材：3：晒单
     */
    @TableField("type")
    private Integer type;

    /**
     * 文本内容
     */
    @TableField("text_content")
    private String textContent;
    /**
     * 内容
     */
    @TableField("content")
    private String content;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 图片链接地址
     */
    @TableField("link")
    private String link;

    /**
     * 是否删除
     */
    @TableField("delete_flag")
    private Integer deleteFlag;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;


    @Override
    public String toString() {
        return "Material{" +
        "materialId=" + materialId +
        ", type=" + type +
        ", content=" + content +
        ", link=" + link +
        ", deleteFlag=" + deleteFlag +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
